<!DOCTYPE html>
<html lang="en">
<head>
    {% load static %}
    <meta charset="UTF-8">
    <title>Download</title>
    <link rel="icon" href="{% static 'img/favicon.ico' %}" type="image/x-icon">
    <link rel="stylesheet" href="{% static 'layui/css/layui.css' %}" media="all"/>
    <script src="{% static 'layui/layui.js' %}" charset="utf-8"></script>
    <script>
        function onLoad() {
            let one = '{{ one }}'
            if (one) {
                if (parent) {
                    parent.dismiss(one)
                } else {
                    window.close()
                }
            }
        }
    </script>
</head>
<body onload="onLoad()">
<table class="layui-table">
    <thead>
    <tr>
        <th>名称</th>
    </tr>
    </thead>
    <tbody>
    {% for item in list %}
        <tr>
            <td><a href="{{ main }}{{ item.href }}" style="cursor:pointer">{{ item.title }}</a></td>
        </tr>
    {% endfor %}
    </tbody>
</table>
</body>
</html>